package com.qf.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbComputerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbComputerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andComIdIsNull() {
            addCriterion("com_id is null");
            return (Criteria) this;
        }

        public Criteria andComIdIsNotNull() {
            addCriterion("com_id is not null");
            return (Criteria) this;
        }

        public Criteria andComIdEqualTo(Long value) {
            addCriterion("com_id =", value, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdNotEqualTo(Long value) {
            addCriterion("com_id <>", value, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdGreaterThan(Long value) {
            addCriterion("com_id >", value, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdGreaterThanOrEqualTo(Long value) {
            addCriterion("com_id >=", value, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdLessThan(Long value) {
            addCriterion("com_id <", value, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdLessThanOrEqualTo(Long value) {
            addCriterion("com_id <=", value, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdIn(List<Long> values) {
            addCriterion("com_id in", values, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdNotIn(List<Long> values) {
            addCriterion("com_id not in", values, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdBetween(Long value1, Long value2) {
            addCriterion("com_id between", value1, value2, "comId");
            return (Criteria) this;
        }

        public Criteria andComIdNotBetween(Long value1, Long value2) {
            addCriterion("com_id not between", value1, value2, "comId");
            return (Criteria) this;
        }

        public Criteria andComModelIsNull() {
            addCriterion("com_model is null");
            return (Criteria) this;
        }

        public Criteria andComModelIsNotNull() {
            addCriterion("com_model is not null");
            return (Criteria) this;
        }

        public Criteria andComModelEqualTo(String value) {
            addCriterion("com_model =", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelNotEqualTo(String value) {
            addCriterion("com_model <>", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelGreaterThan(String value) {
            addCriterion("com_model >", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelGreaterThanOrEqualTo(String value) {
            addCriterion("com_model >=", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelLessThan(String value) {
            addCriterion("com_model <", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelLessThanOrEqualTo(String value) {
            addCriterion("com_model <=", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelLike(String value) {
            addCriterion("com_model like", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelNotLike(String value) {
            addCriterion("com_model not like", value, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelIn(List<String> values) {
            addCriterion("com_model in", values, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelNotIn(List<String> values) {
            addCriterion("com_model not in", values, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelBetween(String value1, String value2) {
            addCriterion("com_model between", value1, value2, "comModel");
            return (Criteria) this;
        }

        public Criteria andComModelNotBetween(String value1, String value2) {
            addCriterion("com_model not between", value1, value2, "comModel");
            return (Criteria) this;
        }

        public Criteria andComGendateIsNull() {
            addCriterion("com_gendate is null");
            return (Criteria) this;
        }

        public Criteria andComGendateIsNotNull() {
            addCriterion("com_gendate is not null");
            return (Criteria) this;
        }

        public Criteria andComGendateEqualTo(Date value) {
            addCriterion("com_gendate =", value, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateNotEqualTo(Date value) {
            addCriterion("com_gendate <>", value, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateGreaterThan(Date value) {
            addCriterion("com_gendate >", value, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateGreaterThanOrEqualTo(Date value) {
            addCriterion("com_gendate >=", value, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateLessThan(Date value) {
            addCriterion("com_gendate <", value, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateLessThanOrEqualTo(Date value) {
            addCriterion("com_gendate <=", value, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateIn(List<Date> values) {
            addCriterion("com_gendate in", values, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateNotIn(List<Date> values) {
            addCriterion("com_gendate not in", values, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateBetween(Date value1, Date value2) {
            addCriterion("com_gendate between", value1, value2, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComGendateNotBetween(Date value1, Date value2) {
            addCriterion("com_gendate not between", value1, value2, "comGendate");
            return (Criteria) this;
        }

        public Criteria andComPriceIsNull() {
            addCriterion("com_price is null");
            return (Criteria) this;
        }

        public Criteria andComPriceIsNotNull() {
            addCriterion("com_price is not null");
            return (Criteria) this;
        }

        public Criteria andComPriceEqualTo(Double value) {
            addCriterion("com_price =", value, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceNotEqualTo(Double value) {
            addCriterion("com_price <>", value, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceGreaterThan(Double value) {
            addCriterion("com_price >", value, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("com_price >=", value, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceLessThan(Double value) {
            addCriterion("com_price <", value, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceLessThanOrEqualTo(Double value) {
            addCriterion("com_price <=", value, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceIn(List<Double> values) {
            addCriterion("com_price in", values, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceNotIn(List<Double> values) {
            addCriterion("com_price not in", values, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceBetween(Double value1, Double value2) {
            addCriterion("com_price between", value1, value2, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComPriceNotBetween(Double value1, Double value2) {
            addCriterion("com_price not between", value1, value2, "comPrice");
            return (Criteria) this;
        }

        public Criteria andComDescIsNull() {
            addCriterion("com_desc is null");
            return (Criteria) this;
        }

        public Criteria andComDescIsNotNull() {
            addCriterion("com_desc is not null");
            return (Criteria) this;
        }

        public Criteria andComDescEqualTo(String value) {
            addCriterion("com_desc =", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescNotEqualTo(String value) {
            addCriterion("com_desc <>", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescGreaterThan(String value) {
            addCriterion("com_desc >", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescGreaterThanOrEqualTo(String value) {
            addCriterion("com_desc >=", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescLessThan(String value) {
            addCriterion("com_desc <", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescLessThanOrEqualTo(String value) {
            addCriterion("com_desc <=", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescLike(String value) {
            addCriterion("com_desc like", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescNotLike(String value) {
            addCriterion("com_desc not like", value, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescIn(List<String> values) {
            addCriterion("com_desc in", values, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescNotIn(List<String> values) {
            addCriterion("com_desc not in", values, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescBetween(String value1, String value2) {
            addCriterion("com_desc between", value1, value2, "comDesc");
            return (Criteria) this;
        }

        public Criteria andComDescNotBetween(String value1, String value2) {
            addCriterion("com_desc not between", value1, value2, "comDesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}